package org.example.demo.controller;

import org.example.demo.aspect.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @MyAspect
    @RequestMapping("/h1")
    public String hello1() {
        return "Hello1";
    }

    @RequestMapping("/h2")
    public String hello2() {
        return "Hello2";
    }
}
